﻿<UserControl x:Class="EQual.MainModule.Employees.Trainings.TrainingDetailsView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Models="clr-namespace:EQual.MainModule" 
    xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
    Height="219" Width="589">
    
    <UserControl.Resources >
        <ObjectDataProvider x:Key="TrainningStatusType" ObjectType="{x:Type Models:EmployeesProvider}" MethodName="GetTrainingStatus" />
    </UserControl.Resources>
    
    <Grid>
        <Label Margin="0,12,0,0" Name="label1" HorizontalAlignment="Left" Width="121" Height="28" VerticalAlignment="Top" Content="{LocText EQualApplication:ResTexts:TrainingId}" />
        <TextBox Height="23" Margin="0,46,0,0" Name="textBox1" VerticalAlignment="Top" Text="{Binding TrainigId}" HorizontalAlignment="Left" Width="121" />
        <Label Height="28" Margin="149,12,0,0" Name="label2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="121" Content="{LocText EQualApplication:ResTexts:TrainingSubjcet}"/>
        <TextBox Height="23" Margin="149,46,0,0" Name="textBox2" VerticalAlignment="Top" HorizontalAlignment="Left" Width="121" Text="{Binding TrainingSubjcet}"/>
        <Label Height="28" HorizontalAlignment="Right" Margin="0,12,171,0" Name="label3" VerticalAlignment="Top" Width="121" Content="{LocText EQualApplication:ResTexts:TrainingDate}"/>
        <dg:DatePicker SelectedDate="{Binding Path=TrainingDate}" Margin="0,46,171,0" HorizontalAlignment="Right" Width="121" Height="24" VerticalAlignment="Top" />
        <ComboBox SelectedValue ="{Binding TrainingStatus}"                                            
                   ItemsSource="{Binding Source={StaticResource TrainningStatusType}}" HorizontalAlignment="Left" Height="23" Width="121"  VerticalAlignment="Bottom" Margin="0,0,0,85">

        </ComboBox>
        <Label Content="{LocText EQualApplication:ResTexts:TrainingId}" HorizontalAlignment="Left" Margin="0,106,0,85" Name="label4" Width="121" />
    </Grid>
</UserControl>
